package com.mindata.blockchain.core.model;

import com.mindata.blockchain.core.model.base.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author 王鹏
 */
@Entity
@Table(name = "order_main")
public class OrderEntity extends BaseEntity {


    /**
     * ticket id
     */
    private String ticketId;

    private String sceneryName;
    /**
     * 用户唯一标识
     */
    private String idCard;
    /**
     * 订单状态： 0 创建订单    1 支付成功    2  出票成功    3  已退款
     */
    private Integer status;

    /**
     * orderId唯一键
     */
    private String orderId;


    public String getTicketId() {
        return ticketId;
    }

    public void setTicketId(String ticketId) {
        this.ticketId = ticketId;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getSceneryName() {
        return sceneryName;
    }

    public void setSceneryName(String sceneryName) {
        this.sceneryName = sceneryName;
    }

    @Override
    public String toString() {
        return "OrderEntity{" +
                "ticketId='" + ticketId + '\'' +
                ", sceneryName='" + sceneryName + '\'' +
                ", idCard='" + idCard + '\'' +
                ", status=" + status +
                ", orderId='" + orderId + '\'' +
                '}';
    }
}
